/*
 * Copyright (c) 2020-2099 the original author or authors. All rights reserve.
 */
package org.tianyun.cloud.datasource.configuration;

import java.util.Properties;

/**
 * 数据源工厂配置类
 *
 * @auther ebert_chan
 */
public class DataSourceFactoryProperties {

    /**
     * 是否主数据源，存在多个数据源时，在不指定数据源的情况下，将默认使用该数据源
     */
    private Boolean primary = Boolean.FALSE;

    /**
     * 数据源公共属性
     */
    private Properties props = new Properties();

    /**
     * master数据源配置
     */
    private HikariProperties master;

    /**
     * slave数据源配置
     */
    private HikariProperties slave;

    public Boolean getPrimary() {
        return primary;
    }

    public void setPrimary(Boolean primary) {
        this.primary = primary;
    }

    public HikariProperties getMaster() {
        return master;
    }

    public void setMaster(HikariProperties master) {
        this.master = master;
    }

    public HikariProperties getSlave() {
        return slave;
    }

    public void setSlave(HikariProperties slave) {
        this.slave = slave;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

}